package com.baizhiedu.basic.mapper;

import com.baizhiedu.basic.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: robert.song
 * @Date: Created in 2021/12/13
 */
@Mapper
public interface UserMapper extends Cloneable {
    List<User> findAll() throws IllegalArgumentException;

    List<User> findByCondition(User user) throws IllegalArgumentException;

    List<User> findInMultiIds(List<Integer> id) throws IllegalArgumentException;

    int save(User user);

    int saveForeach(List<User> users);
}
